﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "IOnePointInstanceInput.h"

namespace gcmp
{
    /// \brief 点式构件创建在宿主对象上时的数据结构。
    class GCMP_MODEL_INTERFACE_EXPORT IOnePointInstanceOnHostInput : public IOnePointInstanceInput
    {
    public:
        /// \brief 创建点式构件创建在宿主对象上时的数据结构。
        /// \param pDoc 构件文档指针
        /// \param planeId 构件关联平面Id
        /// \param hostElementId 宿主对象Id
        /// \param familyId 构件的族Id
        /// \param familyType 构件的族类型名称
        /// \return 返回点式构件创建在宿主对象上时的数据结构的指针
        static OwnerPtr<IOnePointInstanceOnHostInput> Create(
            IDocument* pDoc,
            const ElementId& planeId,
            const ElementId& hostElementId,
            const ElementId& familyId,
            const std::wstring& familyType);
    };
}

